<h1>Listing receipts</h1>
<p>
	<%= link_to 'New receipt', new_receipt_path %>
</p>
<table>
  <tr>
    <th>Store</th>
    <th>Receipt date</th>
	<th>Action</th>
  </tr>

<% for receipt in @receipts %>
  <tr class="<%= cycle("even", "odd") %>">
    <td><%=h receipt.store.company.name %></td>
    <td><%=h receipt.rDate %></td>
    <td>
    	<%= link_to image_tag("view.gif"), receipt %>
		<%= link_to image_tag("edit.gif"), edit_receipt_path(receipt) %>
		<%= link_to image_tag("delete.gif"), receipt, :confirm => 'Are you sure?', :method => :delete %>
	</td>
  </tr>
<% end %>
</table>
